Skip to content

Add text chat built-in tools and Responses image input - #366

Open
hopelynd wants to merge 1 commit into
mainfrom
feat/builtin-tool-chat
Open

hopelynd wants to merge 1 commit into
mainfrom
feat/builtin-tool-chat

Conversation

@hopelynd

@hopelynd hopelynd commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add --builtin-tool on bl text chat for Responses tools (web_search, web_extractor, code_interpreter, web_search_image, image_search) with Chat mappings for search and code interpreter
  • Add Responses-only --image for input_image, including dry-run redaction and large-file pending-upload placeholders
  • Harden companion/--tool validation, last-user image rewrite, and offline e2e coverage for the new paths

Description

This extends text chat so agents can enable DashScope built-in tools without hand-writing tools[] JSON. On Responses, --builtin-tool merges selected types (with web_extractor auto-adding web_search); bare --tool {"type":"web_extractor"} without search is rejected because the --tool path does not auto-add companions. Chat maps web_search / code_interpreter onto enable_* and still forces streaming for Chat code interpreter; Responses code interpreter does not require streaming.

--image rebuilds the last user message into Responses multimodal content, preserves unrecognized non-image parts, and confines image-source conflict checks to that rewritten message. Dry-run keeps large local files as pending-upload placeholders and redacts Data URIs; mismatched pending indexes fail closed instead of silently sending placeholders.

Skills reference and offline unit/e2e coverage follow the flag and notes changes. Gap review item about early hasMessagesFile allow for image_search was left as Low/optional: run-time validation still returns the correct USAGE message.

- Added support for new built-in tools including web_extractor, web_search_image, and image_search.
- Introduced flags for specifying built-in tools and images in responses.
- Updated documentation to reflect new command options and usage examples.
- Enhanced validation for built-in tool flags and image requirements in responses API.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant